<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>云排课-登录</title>
    <link rel="stylesheet" href="./css/login.css">
</head>
<body>
    <div class="container">
        <div class="login-content">
            <div class="login-logo">
                <img src="./images/logo-all.png" width="385" height="65" alt="">
            </div>
            <div class="login-change">
                <a href="javascript:void(0);" data-type="email" class="tab active">邮箱注册</a>
                <span>|</span>
                <a href="javascript:void(0);" data-type="phone" class="tab ">手机号注册</a>
            </div>
            <div class="login-form">
                <div class="form-email">
                    <div class="form-group">
                        <i class="user-icon"></i>
                        <div class="form-input">
                            <input type="text" placeholder="请输入您的邮箱">
                        </div>
                    </div>
                    <div class="form-group">
                        <i class="password-icon"></i>
                        <div class="form-input">
                            <input type="text" placeholder="请输入您的密码">
                        </div>
                        <i class="password-show-hide"></i>
                    </div>
                    <div class="form-group">
                        <i class="password-icon"></i>
                        <div class="form-input code-input">
                            <input type="text" class="" placeholder="请输入验证码">
                            <img src="./images/img1.png" width="115" height="42" alt="">
                        </div>
                    </div>
                </div>
                <div class="form-phone" style="display: none;">
                    <div class="form-group">
                        <i class="user-icon"></i>
                        <div class="form-input">
                            <input type="text" placeholder="请输入您的手机号">
                        </div>
                    </div>
                    <div class="form-group">
                        <i class="password-icon"></i>
                        <div class="form-input">
                            <input type="text" placeholder="请输入您的密码">
                        </div>
                        <i class="password-show-hide"></i>
                    </div>
                    <div class="form-group">
                        <i class="password-icon"></i>
                        <div class="form-input code-input">
                            <input type="text" class="" placeholder="请输入验证码">
                            <img src="./images/img1.png" width="115" height="42" alt="">
                        </div>
                    </div>
                    <div class="form-group">
                        <i class="password-icon"></i>
                        <div class="form-input code-input">
                            <input type="text" class="" placeholder="请输入短信验证码">
                            <button class="btn-dx">获取短信验证码</button>
                        </div>
                    </div>
                </div>


                <p class="user-protocol">
                    点击注册，即同意我们的
                    <a href="javascript:void(0);">用户协议</a>
                </p>
                <a class="register login-btn">注册</a>
                <a class="login login-btn">已有账号直接登录</a>
            </div>
        </div>
        <div class="login-bottom">
             Copyright © 2018 - 2020 武汉华志创智能科技有限公司 <span>|</span>湖北省武汉市洪山区软件园E4
        </div>
    </div>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
    $(".login-change .tab").click(function() {
        var type = $(this).attr('data-type');
        if($(this).hasClass('active')){
            return;
        }
        $(".login-change .tab").removeClass('active');
        $(this).addClass('active');
        if(type == 'phone') {
            $('.form-phone').show();
            $('.form-email').hide();
        } else if(type == 'email') {
            $('.form-email').show();
            $('.form-phone').hide();
        }
    })
</script>
</body>
</html>